package com.maijinjie.common.upload;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.maijinjie.common.upload.bean.FileVo;

public class EditorPicFileUploadHandler implements FileUploadHandler {

	@Override
	public String returnFileUploadPlace() {
		return "editor/";
	}

	@Override
	public void handleUploadFile(Map<String, String> parameter,
			Map<String, Object> returnMessage, List<FileVo> list)
			throws Exception {
		Map<String,String> msgMap = new HashMap<String,String>();
		msgMap.put("url",list.get(0).getUrl());
		msgMap.put("localfile", list.get(0).getName());
		returnMessage.put("err", "");
		returnMessage.put("msg", msgMap);
		
		
	}

}
